﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace UIModel.Mongo
{
    /// <summary>
    /// 会员标签历史记录表
    /// </summary>
    public partial class GstLbHisMongo
    {
        /// <summary>
        /// 主键ID(mongo专用)
        /// </summary>
        public ObjectId _id { get; set; }

        /// <summary>
        /// 编号
        /// </summary>
        public string ActID { get; set; }
        /// <summary>
        /// 企业编号
        /// </summary>
        [Description("企业编号")]
        public string CpnID { get; set; }

   
        /// <summary>
        /// 卡面号
        /// </summary>
        [Description("卡面号")]
        public string CrdNo { get; set; }
        /// <summary>
        /// 标签类型
        /// </summary>
        [Description("标签类型")]
        public int Tp { get; set; }
        /// <summary>
        /// 标签代码
        /// </summary>
        [Description("标签代码")]
        public string LbID { get; set; }

        /// <summary>
        /// 标签值
        /// </summary>
        [Description("标签值")]
        public string LbVal { get; set; }

        /// <summary>
        /// 满足条件描述
        /// </summary>
        [Description("满足条件描述")]
        public string LbBrf { get; set; }

        /// <summary>
        /// 标记时间
        /// </summary>
        [Description("标记时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? AdDt { get; set; }

        /// <summary>
        /// 状态(0-正常，-1失效)
        /// </summary>
        [Description("状态(0-正常，-1失效)")]
        public int Stt { get; set; }
        /// <summary>
        /// 失效时间
        /// </summary>
        [Description("失效时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime? CalDt { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Description("更新时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime UptDtt { get; set; }
    }
}
